package com.cjkj.equipment.domain;

import com.cjkj.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 预警记录对象 t_warn_records
 * 
 * @author cjkj
 * @date 2024-08-30
 */
public class TWarnRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 医院ID */
    private String hospitalId;

    /** 科室ID */
    private String deptId;

    /** 就诊号 */
    private Long visitNo;

    /** 设备类型 */
    private String equipmentType;

    /** 设备编号 */
    private String equipmentNo;

    /** 预警类型 */
    private String warnType;

    /** 预警详细内容 */
    private String warnContent;

    /** 是否处理：0=未处理；1=已处理 */
    private String hasHandle;

    /** 处理方式：1=已解决；2=稍后处理； */
    private String handleWay;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;

    /** 预警次数 */
    private Integer warnCount;

    /** 下次提醒时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nextReminderTime;

    /** 预警值 */
    private String warnValue;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHospitalId(String hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public String getHospitalId() 
    {
        return hospitalId;
    }
    public void setDeptId(String deptId) 
    {
        this.deptId = deptId;
    }

    public String getDeptId() 
    {
        return deptId;
    }
    public void setVisitNo(Long visitNo) 
    {
        this.visitNo = visitNo;
    }

    public Long getVisitNo() 
    {
        return visitNo;
    }
    public void setEquipmentType(String equipmentType) 
    {
        this.equipmentType = equipmentType;
    }

    public String getEquipmentType() 
    {
        return equipmentType;
    }
    public void setEquipmentNo(String equipmentNo) 
    {
        this.equipmentNo = equipmentNo;
    }

    public String getEquipmentNo() 
    {
        return equipmentNo;
    }
    public void setWarnType(String warnType) 
    {
        this.warnType = warnType;
    }

    public String getWarnType() 
    {
        return warnType;
    }
    public void setWarnContent(String warnContent) 
    {
        this.warnContent = warnContent;
    }

    public String getWarnContent() 
    {
        return warnContent;
    }
    public void setHasHandle(String hasHandle) 
    {
        this.hasHandle = hasHandle;
    }

    public String getHasHandle() 
    {
        return hasHandle;
    }
    public void setHandleWay(String handleWay) 
    {
        this.handleWay = handleWay;
    }

    public String getHandleWay() 
    {
        return handleWay;
    }
    public void setHandleTime(Date handleTime) 
    {
        this.handleTime = handleTime;
    }

    public Date getHandleTime() 
    {
        return handleTime;
    }
    public void setWarnCount(Integer warnCount) 
    {
        this.warnCount = warnCount;
    }

    public Integer getWarnCount() 
    {
        return warnCount;
    }
    public void setNextReminderTime(Date nextReminderTime) 
    {
        this.nextReminderTime = nextReminderTime;
    }

    public Date getNextReminderTime() 
    {
        return nextReminderTime;
    }
    public void setWarnValue(String warnValue) 
    {
        this.warnValue = warnValue;
    }

    public String getWarnValue() 
    {
        return warnValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hospitalId", getHospitalId())
            .append("deptId", getDeptId())
            .append("visitNo", getVisitNo())
            .append("equipmentType", getEquipmentType())
            .append("equipmentNo", getEquipmentNo())
            .append("warnType", getWarnType())
            .append("warnContent", getWarnContent())
            .append("hasHandle", getHasHandle())
            .append("handleWay", getHandleWay())
            .append("handleTime", getHandleTime())
            .append("warnCount", getWarnCount())
            .append("nextReminderTime", getNextReminderTime())
            .append("createTime", getCreateTime())
            .append("warnValue", getWarnValue())
            .toString();
    }
}
